package com.wish.g01.finance.controller;

import com.wish.g01.base.entity.TbPremisesInfo;
import com.wish.g01.base.service.ITbPremisesInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RequestMapping("/finance")
@RestController
@Slf4j
public class FinanceController {

    @Autowired
    ITbPremisesInfoService premisesInfoService;

    @RequestMapping("finance")
    public Object financial(){
        List<TbPremisesInfo> list = premisesInfoService.list();
        log.info("finance");
        return list;
    }
}
